<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Phone extends CI_Controller {

	function __construct()
	{
		parent::__construct();
		$this->load->helper('url');
		$this->load->library('session');
	}

	function index()
	{
		echo json_encode(array('status' => 0));
	}

	/**
	 * 恶意手机号接口
	 * @return [type] [description]
	 */
	function eyi_phone()
	{
		$phone = $this->input->get('phone');
		$secrekey = 'ox9nbJZgEHSSccS3VZga';
		$appkey = 'sz8zuwRjKe';

		$query = md5('phone='.$phone.'&appkey='.$appkey.$secrekey);

		$url = 'https://api.secboot.com/phone/black/query?phone='.$phone.'&appkey='.$appkey.'&sign='.$query;

		print_r(file_get_contents($url));
	}

}